package com.koron.configure.prior.mapper;

import com.koron.configure.prior.bean.PriorBean;
import com.koron.configure.prior.bean.dto.PriorQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PriorMapper {
    int deleteByPrimaryKey(String id);

    int insert(PriorBean record);

    int insertOrUpdate(PriorBean record);

    int insertOrUpdateSelective(PriorBean record);

    int insertSelective(PriorBean record);

    PriorBean selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(PriorBean record);

    int updateByPrimaryKey(PriorBean record);

    //删除
    int deleteById(List<String> list);

    //抽查配置列表
    List<PriorBean> queryAllByNameAndDeptIdAndDeptName(PriorQuery dto);

    //查所有人员用于校验有无重复添加
    List<String> queryAllByid(@Param("id") String id);

    int batchInsert(@Param("list") List<PriorBean> list);

}
